package com.mapper;/**
 * @program: SmbmsDemo
 * @description: 供应商实现层
 * @author: Mr.Kang
 * @create: 2020-06-01 11:59
 **/

import com.pojo.Provider;
import org.mybatis.spring.SqlSessionTemplate;

import javax.annotation.Resource;
import java.sql.Connection;
import java.util.List;

/**
 * @Description:
 * @author 康康真滴暖
 * @date 2020-06-01 11:59
 */

public class ProviderDaoImpl implements ProviderDao {
    @Resource
    private ProviderDao providerDao;

    @Override
    public List<Provider> getProviderList(String proName, String proCode) throws Exception {
        return providerDao.getProviderList(proName,proCode);
    }

    @Override
    public int deleteProviderById(String delId) throws Exception {
        return providerDao.deleteProviderById(delId);
    }

    @Override
    public Provider getProviderById(String id) throws Exception {
        return providerDao.getProviderById(id);
    }

    @Override
    public int modify(Provider provider) throws Exception {
        return providerDao.modify(provider);
    }

    @Override
    public int add(Provider provider) throws Exception {
        return providerDao.add(provider);
    }
}
